[gd_scene load_steps=14 format=2]

[ext_resource path="res://SimplePusher.gd" type="Script" id=1]
[ext_resource path="res://Spawner.gd" type="Script" id=2]
[ext_resource path="res://pushermat.tres" type="Material" id=3]
[ext_resource path="res://Sensor.tscn" type="PackedScene" id=4]
[ext_resource path="res://Conveyor.tscn" type="PackedScene" id=5]
[ext_resource path="res://blockshader_ghost.shader" type="Shader" id=6]

[sub_resource type="CubeMesh" id=1]

[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 6 )
shader_param/color = Color( 0.227451, 0.521569, 0.521569, 1 )
shader_param/scale = 113.0

[sub_resource type="CubeMesh" id=3]

[sub_resource type="CubeMesh" id=4]

[sub_resource type="SpatialMaterial" id=5]
flags_unshaded = true
albedo_color = Color( 0.207843, 0.207843, 0.207843, 1 )

[sub_resource type="ConvexPolygonShape" id=6]
points = PoolVector3Array( -1, -1, -1, -1, -1, 1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, 1, 1, 1, -1, 1, 1, 1 )

[sub_resource type="CylinderMesh" id=7]

[node name="Pushertest" type="Spatial"]

[node name="Spawner" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
script = ExtResource( 2 )

[node name="MeshInstance" type="MeshInstance" parent="Spawner"]
transform = Transform( 0.48, 0, 0, 0, 0.48, 0, 0, 0, 0.48, 0, 0, 0 )
mesh = SubResource( 1 )
material/0 = SubResource( 2 )

[node name="Camera" type="Camera" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 2.01221, 6.90506 )
far = 8192.0

[node name="Pusher" type="Spatial" parent="."]
transform = Transform( -8.14603e-08, 0, -0.5, 0, 0.5, 0, 0.5, 0, -8.14603e-08, 5, 1, -1 )
script = ExtResource( 1 )
port = 5040

[node name="MeshInstance" type="MeshInstance" parent="Pusher"]
transform = Transform( 0.8, 0, 0, 0, 1, 0, 0, 0, 1, -0.2, 0, 0 )
mesh = SubResource( 3 )
material/0 = ExtResource( 3 )

[node name="PusherHandle" type="Spatial" parent="Pusher"]

[node name="MeshInstance2" type="MeshInstance" parent="Pusher/PusherHandle"]
transform = Transform( 0.2, 0, 0, 0, 1, 0, 0, 0, 1, 0.8, 0, 0 )
mesh = SubResource( 4 )
material/0 = SubResource( 5 )

[node name="KinematicBody" type="KinematicBody" parent="Pusher/PusherHandle"]

[node name="CollisionShape" type="CollisionShape" parent="Pusher/PusherHandle/KinematicBody"]
transform = Transform( 0.2, 0, 0, 0, 1, 0, 0, 0, 1, 0.8, 0, 0 )
shape = SubResource( 6 )

[node name="shaft_handle" type="Spatial" parent="Pusher"]
transform = Transform( -1.31134e-08, -0.1, 0, 0.3, -4.37114e-09, 0, 0, 0, 0.3, 0.6, 0, 0 )

[node name="MeshInstance2" type="MeshInstance" parent="Pusher/shaft_handle"]
transform = Transform( 1, 7.10543e-15, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
mesh = SubResource( 7 )
material/0 = null

[node name="Sensor" parent="." instance=ExtResource( 4 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 4, 0 )
port = 5010

[node name="Conveyor" parent="." instance=ExtResource( 5 )]

[node name="Conveyor2" parent="." instance=ExtResource( 5 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 1, 0, 0 )

[node name="Conveyor3" parent="." instance=ExtResource( 5 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 2, 0, 0 )

[node name="Conveyor4" parent="." instance=ExtResource( 5 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 3, 0, 0 )

[node name="Conveyor5" parent="." instance=ExtResource( 5 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 4, 0, 0 )

[node name="Conveyor6" parent="." instance=ExtResource( 5 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 5, 0, 0 )

[node name="Conveyor7" parent="." instance=ExtResource( 5 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 6, 0, 0 )
